
{* $Id: header.tpl 287 2010-01-07 23:46:33Z steve $ *}

{* INCLUDE HEADER CODE *}
{include file="header_global.tpl"}

{if $smarty.const.SE_DEBUG && $admin->admin_exists}{include file="header_debug.tpl"}{/if}

<div id="smoothbox_container"></div>

		
	<div style="background-color:#3b5998; border-bottom:1px solid #a5bde2; height:42px;"></div>
<div align="center" id="container6">	



<div class='virsus' id='virsus' > 
<div style="float:left"><div id="global_header" class="clearfix"> <h1 id="focus_logo"><a class="text_replace" href="index.php">focus</a></h1>

	</div></div><div style="float:right">
  <div class="focus_search" style="margin-top:10px; padding:0px; float:right; border:2px solid #5174bc;">

    <form action='search.php' method='POST' name='search'>
<input type='text' name='search_text' class="busca" value='Search' {literal}onfocus="if (this.value == '{/literal}Search{literal}') { this.value=''; }" onblur="if (this.value == '') { this.value='{/literal}Search{literal}' }" {/literal} /><input type='hidden' name='task' value='dosearch'><input type='hidden' name='t' value='0'><input style='display:none;' type='submit' name='submit' value='Go' />
<input type='submit' class='btn' value=''>
    <input type='hidden' name='task' value='dosearch'>
    <input type='hidden' name='t' value='0'>
</form>

    </div>
   

    
 <div class="focus_top_menu" style="float:right; padding-right:10px;">
	<ul> <li style="padding-left:10px;"><a href='home.php'>{lang_print id=645}</a></li>
      {* SHOW ANY PLUGIN MENU ITEMS *}
  {hook_foreach name=menu_main var=menu_main_args complete=menu_main_complete max=8}
	<li> <a href='{$menu_main_args.file}' >{lang_print id=$menu_main_args.title}</a></li>

  {/hook_foreach}
  
	</ul>
	</div>
</div>
<div style="clear:both"></div>
	</div>


{* START MAIN LAYOUT *}
<div class="left_side">

{if $user->user_exists == 0}
<div class="left_side_green">{lang_print id=659}</div>
<div style="margin-bottom:5px; padding-top:10px; background-color:#eaedf1;">
 <form action='login.php' method='post'>
      <table cellpadding='0' cellspacing='0' align='center'>
      <tr>
        <td>
          <div style="float:left; padding-right:3px; padding-left:7px; margin-top:4px; font-size:11px;">{lang_print id=89}:</div>
  <div style="float:right; margin-right:4px;">    
<input type='email' class='text4' style=" border:1px solid #a5bde2; width:120px;" name='email' size='25' maxlength='100'  value='Email Address' {literal}onfocus="if (this.value == '{/literal}Email Address{literal}') { this.value=''; }" onBlur="if (this.value == '') { this.value='{/literal}Email Address{literal}' }" {/literal} /></div>
        </td>
      </tr>
      <tr>
        <td style='padding-top: 6px;'>
          <div style="float:left; padding-left:7px; padding-right:3px; margin-top:4px; font-size:11px;">{lang_print id=29}:</div>
          <div style="float:right; margin-right:4px;">  <input type='password' class='text4' style=" border:1px solid #a5bde2; width:120px;" name='password'  size='25' maxlength='100' value='PASSWD' {literal}onfocus="if (this.value == '{/literal}PASSWD{literal}') { this.value=''; }" onBlur="if (this.value == '') { this.value='{/literal}PASSWD{literal}' }" {/literal}></div>
        </td>
      </tr>
      {if !empty($setting.setting_login_code)}
      <tr>
        <td style='padding-top: 6px;'>
          <table cellpadding='0' cellspacing='0'>
            <tr>
              <td><input type='text' name='login_secure' class='text' size='6' maxlength='10' />&nbsp;</td>
              <td>
                <table cellpadding='0' cellspacing='0'>
                  <tr>
                    <td align='center'>
                      <img src='./images/secure.php' id='secure_image' border='0' height='20' width='67' class='signup_code' alt='' /><br />
                      <a href="javascript:void(0);" onClick="$('secure_image').src = './images/secure.php?' + (new Date()).getTime();">{lang_print id=975}</a>
                    </td>
                    <td>{capture assign=tip}{lang_print id=691}{/capture}<img src='./images/icons/tip.gif' border='0' class='Tips1' title='{$tip|escape:quotes}' alt='' /></td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      {/if}
      
      <tr>
        <td style='padding-top: 10px;'>
         
         <div style="float:left; padding-left:7px; margin-top:4px;"> <input type='checkbox' class='checkbox' name='persistent' value='1' id='rememberme' />
          <label for='rememberme'>{lang_print id=660}</label></div>
           <div style="float:right; margin-right:4px;"><input type='submit' class='button' style="width:85px; " value='{lang_print id=30}' /></div><div style="clear:both"></div>
        </td>
      </tr>
      </table>
      
      <noscript><input type='hidden' name='javascript_disabled' value='1' /></noscript>
      <input type='hidden' name='task' value='dologin' />
      <input type='hidden' name='ip' value='{$ip}' />
      </form>
<div style="height:1px; margin-top:8px; background-color:#d7dbdf;"></div>
</div>

<div class="left_side_blue" style="margin-top:0px;">{lang_print id=679}</div>

            <div class="left_links_blue" style="margin:5px 0 5px 0; padding:0px;"><div style="height:1px; background-color:#b0bccf;"></div>
	<ul>
    <li style="">   <a href='signup.php'><img src='./images/icons/signup_today.png' border='0' class='menu_icon' alt='' />{lang_print id=1115}</a></li>
     <li style="">   <a href='login.php'><img src='./images/icons/member_login.png' border='0' class='menu_icon' alt='' />Member Login</a></li>
	 <li style="">   <a href='lostpass.php'><img src='./images/icons/lost_pass.png' border='0' class='menu_icon' alt='' />{lang_print id=675}</a></li>
      <li style="">   <a href='invite.php'><img src='./images/icons/invite_friends.png' border='0' class='menu_icon' alt='' />Find&Invite Friends</a></li>
    </ul></div>
    
    <div class="left_side_blue" style="margin-top:0px;">Follow Us</div>

            <div class="left_links_blue" style="margin:5px 0 5px 0; padding:0px;">
	<ul><div style="height:1px; background-color:#b0bccf;"></div>
    <li style="">   <a href='http://twitter.com/ttemplate' target="_blank"><img src='./images/icons/f_twitter.png' border='0' class='menu_icon' alt='' />Follow Us On Twitter</a></li>
     <li style="">   <a href='http://www.facebook.com/pages/Ttemplate/293597666481' target="_blank"><img src='./images/icons/f_facebook.png' border='0' class='menu_icon' alt='' />Became a Fan on Facebook</a></li>

    </ul></div>
{/if}



{if $user->user_exists == 1}
<div class="left_side_green">Welcome, {$user->user_displayname|truncate:14}</div>
<div style="margin-top:5px;">
<div style="float:left; padding-left:5px; width:58px;"> <a href='{$url->url_create('profile', $user->user_info.user_username)}'>
<img  src='{$user->user_photo('./images/nophoto.gif', TRUE)}' style="border:0px;" width='58' height='58' border='0'> </a></div>

<div style="float:right; width:128px; margin-left:5px; text-align:left;">
<div> <a href='{$url->url_create("profile", $user->user_info.user_username)}' class='menu_item'>
        
          {lang_print id=652}
        </a></div>
<div><a href='user_editprofile.php' class='menu_item'>{lang_print id=1163}</a></div>
<div><a href='user_editprofile_photo.php' class='menu_item'>{lang_print id=1164}</a></div>
{if $user->level_info.level_profile_style != 0 || $user->level_info.level_profile_style_sample != 0}
<div><a href='user_editprofile_style.php' class='menu_item'>{lang_print id=1165}</a></div>{/if}
</div>
<div style="clear:both"></div>
<div style="height:1px;"></div>
<div class="left_side_blue">User Menu</div>

            <div class="left_links_blue" style="margin:4px 0 5px 0; padding:0px;">
	<ul>
    <li style="">  <a href='user_home.php'><img src='./images/icons/menu_home.gif' border='0' class='menu_icon' alt='' />{lang_print id=1161}</a></li>
	<li><a href='network.php'><img src='./images/icons/mynetwork16.gif' border='0' class='menu_icon' alt='' />{lang_print id=1162}</a></li>
    
     {* SHOW MESSAGES MENU ITEM IF ENABLED *}
    {if $user->level_info.level_message_allow != 0}
	<li> <a href='user_messages.php'><img src='./images/icons/message_inbox16.gif' border='0' class='menu_icon' alt='' />{lang_print id=654}{if $user_unread_pms != 0} ({$user_unread_pms}){/if}</a></li>  {/if}
        
        {* SHOW FRIENDS MENU ITEM IF ENABLED *}
    {if $setting.setting_connection_allow != 0}
    <li> <a href='user_friends.php'><img src='./images/icons/friends16.gif' border='0' class='menu_icon' alt='' />{lang_print id=653}</a></li>{/if}
    <li>  <a href='user_account.php'><img src='./images/icons/settings16.gif' border='0' class='menu_icon' alt='' />{lang_print id=655}</a></li>
        <li> <a href='user_logout.php?token={$token}' onclick="$('user_logout').submit(); return false;"><img src='./images/icons/logout.png' border='0' class='menu_icon' alt='' />{lang_print id=26}</a></form></li>
    
	</ul>
	</div>
           {* SHOW APPS MENU ITEM IF ENABLED *}
    {if $global_plugins.plugin_controls.show_menu_user}
<div class="left_side_yellow">Applications</div>
<div class="left_links_blue" style="margin:4px 0 5px 0; padding:0px;">
	<ul>
    {* SHOW ANY PLUGIN MENU ITEMS *}
   {foreach from=$global_plugins key=plugin_k item=plugin_v}
                 {if $plugin_v.menu_user != ''} 
    <li>   <a href='{$plugin_v.menu_user.file}'><img src='./images/icons/{$plugin_v.menu_user.icon}' border='0' class='menu_icon'>{lang_print id=$plugin_v.menu_user.title}</a></li>
     {/if} 
                {/foreach}
    </ul></div>
 {/if}
 
 <div class='newupdates' id='newupdates' style='display: none;'>
        <div class='newupdates_content'>
            <a href='javascript:void(0);' class='newupdates' onClick="SocialEngine.Viewer.userNotifyPopup(); return false;">
            {assign var="notify_total" value=$notifys.total_grouped}
            {lang_sprintf id=1019 1="<span id='notify_total'>`$notify_total`</span>"}
            </a>
            
            <a href='javascript:void(0);' class='newupdates' onClick="SocialEngine.Viewer.userNotifyHide(); return false;"><span style="padding-left:10px; font-size:13px;">X</span></a>
          </div>
      </div>
<div class="left_side_blue" style="margin-top:5px;">Follow Us</div>

            <div class="left_links_blue" style="margin:5px 0 5px 0; padding:0px;">
	<ul><div style="height:1px; background-color:#b0bccf;"></div>
    <li style="">   <a href='http://twitter.com/ttemplate' target="_blank"><img src='./images/icons/f_twitter.png' border='0' class='menu_icon' alt='' />Follow Us On Twitter</a></li>
     <li style="">   <a href='http://www.facebook.com/pages/Ttemplate/293597666481' target="_blank"><img src='./images/icons/f_facebook.png' border='0' class='menu_icon' alt='' />Became a Fan on Facebook</a></li>

    </ul></div>
      
      {* USER NOTIFICATIONS *}
{if $user->user_exists}
{lang_javascript ids=1198,1199}
<script type='text/javascript'>
<!--
var notify_update_interval;
window.addEvent('domready', function() {ldelim}
  SocialEngine.Viewer.userNotifyGenerate({$se_javascript->generateNotifys($notifys)});
  SocialEngine.Viewer.userNotifyShow();
  notify_update_interval = (function() {ldelim}
    if( notify_update_interval ) SocialEngine.Viewer.userNotifyUpdate();
  {rdelim}).periodical(60 * 1000);
{rdelim});
//-->
</script>
<div style='display: none;' id='newupdates_popup'></div>
{/if}


</div>
<div style="clear:both"></div>
{/if}
<div class="left_bottom"></div>
</div>

<div class='content'>

  {* SHOW BELOW-MENU ADVERTISEMENT BANNER *}
  {if $ads->ad_belowmenu != ""}<div class='ad_belowmenu' style='display: block; visibility: visible;'>{$ads->ad_belowmenu}</div>{/if}

{if $ads->ad_left != ""}
<div class='ad_left' style='display: block; visibility: visible;'>{$ads->ad_left}</div>
{/if}